#ifndef MY_LABEL_H
#define MY_LABEL_H

#include <QWidget>
#include <QLabel>
#include <QHBoxLayout>
#include "common.h"

class My_label : public QWidget
{
    Q_OBJECT
public:
    My_label(const QString &title, QWidget *parent = nullptr);
    void set_text(const QString &text);
    void set_num(double num);

private:
    QLabel* lab_title;
    QLabel* lab_value;
    QHBoxLayout* box;
};

#endif // MY_LABEL_H
